home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 8 / Night Owl CD-ROM (NOPV8) (Night Owl Publisher) (1993).ISO / 017a / binutils.arj / CHANGELO < prev    next >
Text File  |  1991-03-27  |  55KB  |  1,425 lines

  1. Wed Jun 20 13:34:11 1990  Mike Haertel  (mike at thor.acc.stolaf.edu)
  2.  
  3.     * gprof.c: Make qsort compare functions take const void *
  4.     arguments for compatibility with the standard.
  5.  
  6. Tue Jun 19 19:23:41 1990  Mike Haertel  (mike at ducky)
  7.  
  8.     * ld.c: (do_file_warnings, do_relocation_warnings):
  9.     Always print the object file name in error messages,
  10.     even if we also know a source file name.  Use
  11.     print_file_name() to properly print the names of
  12.     files that came from libraries.
  13.     (getpagesize): Fake getpagesize() for sun 4's.
  14.  
  15. Wed Jun 13 13:11:21 1990  Mike Haertel  (mike at ducky)
  16.  
  17.     * Makefile: (ld): Link the demangler.
  18.     * cplus-dem.c: Don't include <memory.h> on NeXT.
  19.     * ld.c:    Include <sys/resource.h> unless USG.
  20.     (demangler): New variable; unconditionally set
  21.     to cplus_demangle().  This is different from how
  22.     ld++ did it, but conditionalizing on whether -lg++
  23.     is specified seems too much of a kludge.  The
  24.     demangler will only demangle names that look like
  25.     they came from g++ anyway.
  26.     (main): Attempt to raise the stack limit so we
  27.     don't barf on large files.
  28.     (decode_command): Add new option `-nostdlib', with
  29.     new flag `no_standard_dirs'.
  30.     (file_open): Eliminate unused variable `p'.
  31.     Deal with the case of no standard library dirs.
  32.     (enter_file_symbols): Eliminate unused `lowest_set_vector'.
  33.     (enter_global_ref): Logically and nlist.n_type with
  34.     ~N_EXT rather than N_TYPE; otherwise, e.g.,  <stab.h>'s
  35.     N_FUN would get turned into N_TEXT, which we don't want.
  36.     (subfile_wanted_p): Eliminate Kingdon's "if the user
  37.     declares 'int pipe;' we don't want to get 'pipe()'
  38.     from the library" bugfix, because (first of all)
  39.     it breaks g++, and secondly, it was generally wrong.
  40.     If the user declares "int errno;" and the library
  41.     declares "int errno = 0;" we want to get the library's
  42.     version.  The proper fix will require some thought.
  43.     (digest_symbols): Eliminated unused variable `erred'.
  44.     (relocate_file_addresses): Use ~N_EXT instead of N_TYPE.
  45.     (address_to_line): Likewise.
  46.     (do_relocation_warnings): Eliminate unused variables
  47.     `next' and `source'.  Use the demangler to print names.
  48.     (do_file_warnings): Use the demangler when possible.
  49.     (do_warnings): Eliminate unused variable `i'.
  50.     (initialize_a_out_data_start): If no entry symbol
  51.     was given, set it to "start", if sequent.
  52.     (perform_relocation): Eliminate variable `data_input_address'
  53.     performing copy propogation by hand to the one place it
  54.     was used.  Get rid of misleading comments.
  55.     (coptxtrel): Use ~N_EXT instead of N_TYPE.
  56.     (copdatrel): Likewise.
  57.     (write_syms): Likewise.
  58.  
  59. Tue Jun 12 11:16:26 1990  Mike Haertel  (mike at ducky)
  60.  
  61.     * Makefile: Use $(CFLAGS) when linking.
  62.     * ar.c: (struct member_desc): date is long.
  63.     (scan): Fully initialize member_desc.
  64.     (delete_from_map): Clobber info.name instead
  65.     of unlinking from list.
  66.     (update_symdefs): Only install new symdefs for
  67.     members that *have* them.
  68.     Changes for MACH_O:
  69.     (read_header_info): New function.
  70.     (make_new_symdefs): Use it.
  71.     * gprof.c: fread() returns size_t for ANSI.
  72.     Declare qsort() properly for ANSI.
  73.     Move #include <assert.h> to the top.
  74.     size_t is an unsigned int.
  75.     Changes for MACH_O:
  76.     (read_header_info): New function.
  77.     (main): Use it.
  78.     (badsym): Allow N_SECT symbols.
  79.     (fatal): Print a space after the colon.
  80.     * ld.c: Changes for MACH_O:
  81.     (struct file_entry):  New fields containing header
  82.     info but no explicit struct exec, as well as file type info.
  83.     Also section ordinals for Mach-O files.
  84.     (output_file_type): New global variable.
  85.     (output_style): New global variable, also supersedes
  86.     the flag relocatable_output.
  87.     Removed a.out specific stuff from global variables.
  88.     (output_*_offset): New global variables initialized
  89.     according to the output file type.
  90.     (decode_command): Remove a.out specific stuff.
  91.     (deduce_file_type): New function.
  92.     (read_a_out_header): New function.
  93.     (read_mach_o_header): New function.
  94.     (read_header): Use the above functions.
  95.     (read_entry_symbols): Use new file_entry fields;
  96.     call translate_mach_o_symbols().
  97.     (read_entry_strings): Use new file_entry fields;
  98.     no longer deduce symseg presence.
  99.     (read_file_symbols): Use deduce_file_type().
  100.     (enter_file_symbols): Use new file_entry fields.
  101.     Display N_INDR refs differently.  Move default: in
  102.     display switch out of #ifdef sequent.
  103.     (contains_symbol): Use new file_entry fields.
  104.     (symdef_library): Use xmalloc().  Remember to
  105.     free subentry->strings, but only if we allocated them.
  106.     (process_subentry): Use new file_entry fields.
  107.     (subfile_wanted_p): Likewise.
  108.     (digest_symbols): Use new functions initialize_text_start()
  109.     and initialize_data_start().  Remove a.out specific stuff.
  110.     (consider_file_section_lengths): Use new file_entry fields.
  111.     (relocate_file_addresses): Use new file_entry fields.
  112.     (describe_file_sections): Likewise.
  113.     (list_file_locals): Likewise.
  114.     (next_debug_entry): Likewise.
  115.     (init_debug_scan): Likewise.
  116.     (do_relocation_warnings): Likewise.
  117.     (do_file_warnings): Likewise.
  118.     (do_warnings): Use new global output_style.
  119.     (initialize_a_out_text_start): New function.
  120.     (initialize_a_out_data_start): New function.
  121.     (compute_a_out_section_offsets): New function.
  122.     (compute_more_a_out_section_offsets): New function.
  123.     (write_a_out_header): New function.
  124.     (translate_mach_o_symbols): New function.
  125.     (translate_mach_o_relocation): New function.
  126.     (initialize_mach_o_text_start): New function.
  127.     (initialize_mach_o_data_start): New function.
  128.     (compute_mach_o_section_offsets): New function.
  129.     (compute_more_mach_o_section_offsets): New function.
  130.     (write_mach_o_header): New function.
  131.     (generate_mach_o_symbols): New function.
  132.     (generate_mach_o_relocations): New function.
  133.     (initialize_text_start): New function switch on
  134.     ouput_file_type.
  135.     (initialize_data_start): Likewise.
  136.     (compute_section_offsets): Likewise.
  137.     (compute_more_section_offsets): Likewise.
  138.     (write_header): Switch on output_file_type.
  139.     (write_output): Use the above functions.  Bug fix
  140.     for umask().
  141.     (write_text):  Use output_text_offset.
  142.     (text_offset): No longer used.
  143.     (read_file_relocation): Use new file_entry fields.
  144.     Call translate_mach_o_relocation() for Mach-O input files.
  145.     (copy_text): Likewise.
  146.     (write_data): Use output_data_offset.
  147.     (copy_data): Use new file_entry fields.  Call
  148.     translate_mach_o_relocation() for Mach-O input files.
  149.     (perform_relocation): Use new file_entry fields.
  150.     (write_rel): Use output_*rel_offset.
  151.     (coptxtrel): Use new file_entry fields.  Call
  152.     generate_mach_o_relocations() for Mach-O output files.
  153.     (copdatrel): Likewise.
  154.     (write_string_table): Use output_strs_{offset,size}.
  155.     (write_syms):Use output_{syms,strs}_{offset,size}.
  156.     Use n_sect field if N_SECT is defined.  Call
  157.     generate_mach_o_symbols() for Mach-O output files.
  158.     (write_file_syms): Likewise.
  159.     (write_symsegs): Use output_symseg_offset.
  160.     (write_file_symseg): Use new file_entry fields.
  161.     Changes for NeXT:
  162.     (N_TXTADDR): Provide version for NeXT.
  163.     (N_DATADDR): Provide version for NeXT.
  164.     (enter_global_ref): Deal with NeXT N_INDR weirdness.
  165.     (compute_a_out_section_offsets): Likewise.
  166.     (CPU_TYPE, et al): Mach-O info for the NeXT.
  167.     (compute_mach_o_section_offsets): Deal with N_INDR
  168.     strangeness.
  169.     (write_rel): Likewise.
  170.     (coptxtrel): Likewise.
  171.     (copdatrel): Likewise.
  172.     (write_syms): Likewise.
  173.     (symtab_init): Deal with NeXT shared library strangeness.
  174.     * nm.c: Changes for MACH_O:
  175.     (do_one_file): Remove a.out specific stuff.
  176.     (read_header_info): New function.
  177.     (do_one_rel_file): Use it.
  178.     (read_header): Removed.
  179.     (print_one_symbol): Deal with Mach-O section ordinals.
  180.     * size.c: Changes for MACH_O:
  181.     (do_one_file): Remove a.out specific stuff.
  182.     (read_header_info): New function.
  183.     (do_one_rel_file): Use it.
  184.     (read_header): Removed.
  185.     * strip.c: Changes for MACH_O:
  186.     (struct file_entry): Remove struct exec; add generic
  187.     fields to contain necessary information.
  188.     (main): Use new file_entry fields.
  189.     (file_open): Remove a.out specific stuff.
  190.     (read_header): Use new file_entry fields.  Handle
  191.     Mach-O files.
  192.     (read_entry_symbols): Use new file_entry fields.
  193.     (count_file_symbols): Likewise.
  194.     (rewrite_file_symbols): Likewise.
  195.     (write_file_syms): Likewise.
  196.     (modify_relocation): Likewise.
  197.  
  198. Mon May 28 16:25:59 1990  Mike Haertel  (mike at apple-gunkies)
  199.  
  200.     * Copied the binutils home to work on.  So please anyone
  201.     else don't make any changes!!!!
  202.  
  203.     * Removed gprof.texinfo from ARCHLIST because the file
  204.     it was symbolically linked to mysteriously disappeared.
  205.  
  206. Mon May 21 18:39:33 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
  207.  
  208.     * Makefile (clean): Also remove $(archpfx)*.o.
  209.  
  210.     * nm.c (print_one_symbol): Cast n_other and n_desc to unsigned
  211.     before passing to printf.
  212.  
  213. Tue May 15 15:19:49 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  214.  
  215.     * ARCHLIST: Add signame.h.
  216.  
  217. Sun May  6 23:41:35 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  218.  
  219.     * Makefile (dist): Don't make an uncompressed tar file.
  220.  
  221. Sat Apr  7 22:58:27 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  222.  
  223.     * Makefile (MALLOC): Add.
  224.     ARCHLIST: Add gmalloc.c.
  225.     gmalloc.c: New file linked from ../lib/malloc.
  226.  
  227. Fri Apr  6 00:02:22 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  228.  
  229.     * Makefile: Make objdump depend on a.out.gnu.h.
  230.  
  231.     * gprof.c: Remove never-used declaration of getopt.
  232.  
  233.     * gprof.c: Add REMOVE_TIME_IF_THERE to not complain on gcc-compiled
  234.     programs.
  235.  
  236. Tue Mar 20 15:41:22 1990  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  237.  
  238.     * hp-bin/mkhplib: Create a dummy libg.a.
  239.  
  240. Thu Mar  1 14:22:02 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  241.  
  242.     * ld.c (classify_arg, decode_option): Functions removed, with
  243.     some of the code moved to decode_command.
  244.     (decode_command): Use getopt_long_only instead of custom arg parser.
  245.     (usage, fatal, fatal_with_file): Use `progname' instead
  246.     of hardcoded name.
  247.     (usage): If STRING is null, don't print it.
  248.  
  249.     * Makefile: Link ld with GNU_GETOPT_LONG.
  250.  
  251. Wed Feb 28 14:32:06 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  252.  
  253.     * ranlib.c (main): Call psignal() with arguments in the correct    order.
  254.     signame.c, signame.h: New files (linked from ../lib).
  255.     ranlib.c: Include signame.h.
  256.  
  257.     * Makefile: Make sure LIBS is after every program which
  258.     uses GNU_GETOPT_LONG (for alloca()).
  259.  
  260. Thu Feb 15 23:35:07 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
  261.  
  262.     * ar.c (mywrite): New function which checks for errors.
  263.     All over: Use it instead of write.
  264.     (perror_with_name): If errno >= sys_nerr, print "unknown error"
  265.     not "can't open".
  266.     (extract_member): Use ferror to check for error.
  267.  
  268. Tue Feb 13 14:29:24 EST 1990    Jay Fenlason (hack@wookumz.ai.mit.edu)
  269.  
  270.     * strip.c (rewrite_file_symbols)  Seek to the right place in
  271.     COFF files.  A three line patch from Eliot Dresselhaus
  272.     (eliot@mgm.mit.edu).
  273.  
  274. Wed Jan 31 22:15:11 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  275.  
  276.     * hp-include: Remove sys/fcntl.h
  277.  
  278.     * nm.c [USG], ar.c [LOCKS]: Include <fcntl.h> not <sys/fcntl.h>.
  279.  
  280. Fri Jan 26 20:13:12 1990  Mike Haertel  (mike at rice-chex)
  281.  
  282.     * Makefile: Removed references to GNU CC in copyright notice.
  283.  
  284. Thu Jan 11 03:32:52 1990  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  285.  
  286.     * ARCHLIST: Include ARCHLIST in distribution.
  287.  
  288.     * ranlib.c: If X_OK is not defined, define it (for USG).
  289.     (main, touch_symdefs): Include program name in error messages.
  290.  
  291.     * strip.c (xmalloc): Don't check for size != 0.
  292.     (usage): New function.
  293.     (main): Call usage instead of fprintf or fatal.
  294.  
  295. Wed Jan 10 15:06:00 1990  Jim Kingdon  (kingdon at pogo)
  296.  
  297.     * ld.c (subfile_wanted_p): Never use a library to satisfy a
  298.     program's common symbol.
  299.  
  300.     * ld.c (symtab_init) [sun]: Use symbol_define for __DYNAMIC.
  301.     [sequent]: Same for _i387_flt.
  302.  
  303. Wed Jan 10 01:44:58 1990  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  304.  
  305.     * size.c (main): Exit with 0 status normally, instead of garbage.
  306.     * strip.c (main): Make -g a recognized option. Document -g in
  307.     usage message.  Exit with 0 status normally.
  308.     * nm.c (main): Exit with 0 status normally.
  309.     * gprof.c (main): Ditto.
  310.  
  311. Mon Jan  8 00:06:55 1990  Mike Haertel  (mike at rice-chex)
  312.  
  313.     * strip.c (main):  Made -g a synonym for -S (strip debugging
  314.     symbols) for greater mnemonic value.
  315.  
  316. Thu Dec 28 02:41:37 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  317.  
  318.     * objdump.c, ld.c, nm.c, size.c (xmalloc, xrealloc): Take the
  319.     change to return 0 if size is 0 back out.  bfox convinced me
  320.     that, assuming that programs do not allocate 0 bytes
  321.     intentionally, printing an error message if they try makes
  322.     it easier to track down the bug.
  323.  
  324. Sat Dec 23 00:49:43 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  325.  
  326.     * ld.c (usage): Mention some options that were missing from the
  327.     usage message.
  328.  
  329.     * ranlib.c (main): stbf wasn't defined.  Use access instead
  330.     of stat, since it tests for execute permission.
  331.  
  332. Fri Dec 22 23:38:15 1989  David J. MacKenzie  (djm at rice-chex)
  333.  
  334.     * ar.c, ld.c, nm.c: Put various alloca declaration stuff in
  335.     one place, and declare it as char * if not GNU C or sparc.
  336.  
  337.     * ld.c, nm.c, size.c (xmalloc, xrealloc): Return char *, not int.
  338.     Ok to return 0 if 0 bytes requested (ANSI C).
  339.     Fix declarations for [x][re]alloc.
  340.  
  341.     * strip.c (main): Combine fprintf calls for usage.
  342.  
  343. Fri Dec 22 11:23:26 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  344.  
  345.     * ranlib.c (main): Look for ar in /usr/local/gnubin first.
  346.     Rename `jak' to `junk'.
  347.     Move `#define vfork' to start of file.  Don't declare it extern.
  348.  
  349. Thu Dec 21 17:02:54 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  350.  
  351.     * gprof.c (main): Combine fprintf calls in usage message.
  352.  
  353.     * objdump.c (usage): Combine fprintf calls.
  354.  
  355.     * robotussin.c (main): Add dashes to usage message to reduce
  356.     confusion of three 'f's in a row . . . .
  357.  
  358.     * nm.c (main): Combine several fprintf calls to make usage
  359.     message easier to edit.
  360.  
  361.     * ld.c (usage): New function to print error message and usage message.
  362.     (decode_command, decode_option): Call usage instead of fatal.
  363.  
  364.     * ar.c (usage): New function to print error message and usage message.
  365.     (main): Call usage instead of fatal.
  366.  
  367. Fri Dec 15 16:05:38 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  368.  
  369.     * ld.c (perform_relocation) [CROSS_LINKER]: New code.
  370.  
  371. Tue Dec 12 00:17:41 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  372.  
  373.     * ld.c (symtab_init): Use _edata not __edata.
  374.  
  375. Mon Dec 11 23:34:51 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  376.  
  377.     * ld.c: Always call each_full_file with 2 args.
  378.  
  379. Mon Dec  4 16:02:43 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  380.  
  381.     * Makefile: Define bindir.
  382.     (install): Add semicolon to end of 'cp' and 'mv' lines.
  383.     (install): Double last '$' in 'mv' line.
  384.  
  385. Sat Dec  2 13:54:22 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  386.  
  387.     * objdump.c (usage): Remove stray newline in message.
  388.  
  389. Thu Nov 30 21:38:02 1989  David J. MacKenzie  (djm at rice-chex)
  390.  
  391.     * objdump.c (usage): Update to reflect Jim's change.
  392.  
  393. Thu Nov 30 19:05:17 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  394.  
  395.     * objdump.c (main): Rename +sym-links to +symbols.
  396.  
  397.     * nm.c (do_one_rel_file): Check for validity of string table
  398.     offsets to avoid core dumps on bad input files.
  399.  
  400.     * ld.c (process_subentry): Remove variable prev and assign
  401.     directly to *prev_addr.
  402.  
  403. Thu Nov 30 15:33:59 1989 Jay Fenlason (hack at gnu.ai.mit.edu)
  404.  
  405.     * Fixed gprof.c so it would compile and run.  Jim forgot
  406.     a } and said FUN1 when he meant EXT1 when he added
  407.     the demangle stuff.
  408.  
  409. Mon Nov 27 18:12:30 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  410.  
  411.     * objdump.c: Add page_size.
  412.     (main): Set it.
  413.  
  414. Mon Nov 27 16:35:50 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  415.  
  416.     * Makefile (dist): Give up on weird linking schemes for making
  417.     the distribution archive, and simply read the list of files to
  418.     put in the archive from a file.
  419.  
  420.     * gprof.c (main): Rename long options:
  421.     suppress-local to no-static, suppress-blurbs to brief,
  422.     suppress-arg-prof to no-prof, suppress-arg-time to no-time,
  423.     arg-prof-only to only-prof, arg-time-only to only-time.
  424.  
  425. Sun Nov 26 00:46:10 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  426.  
  427.     * gprof.c (main): Make long_options static.  Mention long
  428.     options in usage message.  Use common code for handling
  429.     equivalent long and short named options.
  430.  
  431. Fri Nov 24 03:44:04 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  432.  
  433.     * Makefile (dist): Don't distribute backup files in the hp-bin
  434.     and hp-include directories. 
  435.  
  436.     * strip.c (main): Add null terminating element to
  437.     long_options.  Print a usage message if an invalid option is
  438.     given. 
  439.  
  440.     * ranlib.c (main): Add `val' element to long_options elements.
  441.     Print a usage message if an invalid option is given.
  442.  
  443.     * gprof.c (main): Add null terminating element to
  444.     long_options.  Mention long options in usage message and exit
  445.     if an invalid option is given.
  446.  
  447.     * nm.c (main): Rename +debug-syms to +all and +reverse-sort to
  448.     +reverse.  Add null terminating element to long_options.
  449.     Print a usage message if given an invalid option.
  450.  
  451.     * objdump.c: Add program_name variable.
  452.     (main): Rename +syms to +sym-links.  Add null
  453.     terminating element to long_options.  Set program_name.
  454.     (usage): Mention long options and use program_name.
  455.     (xmalloc): New function to allocate memory with error check.
  456.     Global: use xmalloc instead of malloc.
  457.     Global: Use program_name in error messages.
  458.  
  459. Mon Nov 20 16:58:25 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  460.  
  461.     * objdump.c [!COFF_ENCAPSULATE]: Define N_MAGIC.
  462.  
  463.     * ld.c (main) [COFF_ENCAPSULATE]: Don't write coff header
  464.     for output of ld -A.
  465.     (read_file_symbols, read_header): Seek past coff header for
  466.     input with just_syms_flag set.
  467.  
  468. Fri Nov 17 02:45:43 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  469.  
  470.     * objdump.c (dump_header) [__GNU_EXEC_MACROS]: Don't access a_info
  471.     field of struct exec.
  472.  
  473.     * objdump.c: Include <a.out.h> not "a.out.gnu.h"
  474.  
  475.     * objdump.c (main): Make long_options static.
  476.  
  477. Thu Nov 16 22:55:38 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  478.  
  479.     * Makefile (ranlib): Depend on getopt.
  480.  
  481. Thu Nov 16 11:48:27 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  482.  
  483.     * ld.c (decode_option, case 'r'): Set default_magic instead
  484.     of magic.
  485.     (decode_command): Use default_magic.
  486.  
  487.     * Makefile (CPLUS_DEM): Use this for nm and gprof.
  488.  
  489.     * nm.c (print_one_symbol): Use cplus_demangle.
  490.  
  491.     * gprof.c (many): Use cplus_demangle when printing names.
  492.  
  493.     * ld.c (copdatrel): Use N_DATADDR(outheader) for correct
  494.     behavior under 'ld -r -n'.
  495.  
  496.     * ld.c (relocate_file_addresses): Use DATA_ADDR_DOT_O
  497.     instead of entry->header.a_text.
  498.  
  499. Wed Nov 15 13:08:49 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  500.  
  501.     * ld.c (digest_symbols): When padding data to 8 byte boundary,
  502.     set pad_data so that write_data() can write the padding.
  503.     Change old computation of pad_data to add to pad_data instead
  504.     of assigning into it.
  505.  
  506.     * ld.c (perform_relocation): Add variable data_input_address
  507.     to deal with NMAGIC input files.
  508.  
  509.     * ld.c (symbol_define): New function.
  510.     (symtab_init): Use it.
  511.  
  512.     * robotussin [sun386]: Merge sun386 changes.
  513.  
  514. Tue Nov 14 12:52:34 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  515.  
  516.     * Makefile (ld): Change ld to $(archpfx)ld.
  517.  
  518.     * Makefile (objdump): Add GNU_GETOPT_LONG to dependencies.
  519.  
  520.     * ld.c [pyr, hp300]: Define INITIALIZE_HEADER and N_{TXT,DATA}ADDR.
  521.  
  522. Sat Nov 11 12:08:21 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  523.  
  524.     * ld.c (symtab_init): Don't mess with user-defined "etext".
  525.     (digest_symbols): Check for e{text,data}_symbol null.
  526.  
  527.     * ld.c (main): Call symtab_init after load_symbols.
  528.  
  529.     * ld.c (write_output): Add call to unlink.
  530.  
  531. Wed Nov  8 11:19:08 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  532.  
  533.     * strip.c (relocation_info_ptr, RELOCATION_INFO_SYMBOL_NUM):
  534.     Added.
  535.     (modify_relocation): Use them.
  536.  
  537.     * Makefile (strip): Use GNU_GETOPT_LONG, not GNU_GETOPT.
  538.  
  539.     * ld.c [sun].  Set machtype based on machtype of object files.
  540.     (read_header): Call READ_HEADER_HOOK if defined.
  541.  
  542. Fri Nov  3 15:18:15 EST 1989 Jay Fenlason (hack@ai.mit.edu)
  543.  
  544.     * nm.c (main) make long_options static so it can be compiled with cc.
  545.     * strip.c (main) ditto.
  546.  
  547. Thu Oct 26 12:28:33 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  548.  
  549.     * Makefile (install): Supply missing `done'.
  550.  
  551. Tue Oct 17 12:50:46 1989  Mike Haertel  (mike at wheat-chex)
  552.  
  553.     * ld.c (enter_file_symbols): ignore symbols of type
  554.     N_SETV | N_EXT.  These shouldn't be here at all should
  555.     they?
  556.  
  557. Mon Oct 16 16:53:03 1989  Joseph Arceneaux  (jla at apple-gunkies.ai.mit.edu)
  558.  
  559.     * ld.c (process_subentry): New function called from
  560.     linear_library.
  561.  
  562. Fri Oct  6 10:46:40 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  563.  
  564.     * gprof.c [!HAVE_VPRINTF]: Put in v{f,s}printf emulations.
  565.  
  566. Mon Oct  2 17:20:42 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  567.  
  568.     * ld.c [sequent] (N_TXTADDR, N_DATADDR): Define these macros.
  569.     [sequent] (INITIALIZE_HEADER): Define this same as for i386.
  570.     (RELOC_MEMORY_SUB_P): New customization macro.
  571.     Define as 0 on sun 4.  Define as 0 for defaults.
  572.     [sequent] (RELOC_* macros): Definitions for sequent.
  573.     (decode_command, digest_symbols): Handle case where NMAGIC is undefined.
  574.     (enter_global_ref) [sequent]: Handle special N_SHUNDF code.
  575.     (digest_symbols, write_symbols) [sequent]: Adjust outheader.a_text.
  576.     (perform_relocation): Handle RELOC_MEMORY_SUB_P like ..._ADD_P.
  577.     (symtab_init) [sequent]: Define symbol `_387_flt' w/ value 0.
  578.  
  579. Fri Sep 22 11:06:25 EDT 1989    hack@ai.mit.edu
  580.  
  581.     * gprof.c (main) Installed Joy's code for using the long-option names.
  582.  
  583. Thu Sep 21 03:24:36 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  584.  
  585.     * ld.c (symtab_init) [sun]: Define __DYNAMIC as 0.
  586.     (perform_relocation) [RELOC_ADD_EXTRA]:
  587.     Special handling for relocatable_output case.
  588.     (read_file_relocation): Fix error message typos.
  589.  
  590. Mon Sep 18 14:40:40 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  591.  
  592.     * ld.c (digest_symbols): Pad data and bss to 8 byte boundary.
  593.  
  594. Fri Sep 15 16:42:33 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  595.  
  596.     * a.out.gnu.h [sony]: Defined SEGMENT_SIZE as 0x2000.
  597.  
  598.     * Makefile (ranlib): Include getopt in the link.
  599.     (objdump): New rule.
  600.     (install): New rule.
  601.  
  602. Fri Sep  1 01:32:01 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  603.  
  604.     * ranlib.c: Added copyright notice and license info.
  605.  
  606. Wed Aug 30 20:53:21 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  607.  
  608.     * Makefile (LIBS): Also get getopt1.o.
  609.     (dist): Include getopt1.c.
  610.  
  611.     * ranlib.c (main): Move long option array into main, and fixed it so it
  612.     will compile.
  613.  
  614.     * Makefile (dist): Link rather than copy files into the subdir.
  615.     Include system.h and getopt.h.
  616.  
  617. Thu Aug 24 14:33:48 1989  Randy Smith  (randy at hobbes.ai.mit.edu)
  618.  
  619.     * ld.c (do_file_warnings): Don't print out multiple definition
  620.     warnings at references.
  621.  
  622. Mon Aug 21 20:19:08 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  623.  
  624.     * ar.c (make_new_symdefs): Abort if MAPELT->info.name is nil.
  625.     (update_symdefs): In the loop that calls make_new_symdefs, reject
  626.     deleted members (i.e., TAIL->info.name == 0).
  627.  
  628.     * ar.c (make_new_symdefs): Return if we fail reading the header or the
  629.     magic number is bad.
  630.  
  631.     * ar.c (make_new_symdefs): Check for ridiculous string table offsets.
  632.  
  633.     * ranlib.c (main): If the child ar exits with a signal, print the
  634.     signal that killed it.
  635.  
  636.     * ar.c (make_new_symdefs): Check for a ridiculous string table size.
  637.  
  638.     * ar.c (write_archive): When fixing up symdefs, use each member's
  639.     new_offset rather than data_offset.
  640.  
  641.     * ar.c (update_symdefs): When the old archive's string table is too
  642.     small, die, don't just bitch.
  643.  
  644.     * ar.c (update_symdefs): Don't decrement num_old_symdefs when deleting
  645.     symdefs of deleted members.  After compactifying old symdefs, decrease
  646.     num_old_symdefs as necessary.
  647.  
  648.     * ar.c (update_symdefs): When removing symdefs of deleted members,
  649.     compare the symdef offsets to the mapelt's data offset, not its header
  650.     offset.
  651.  
  652. Sat Aug 19 08:07:26 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  653.  
  654.     * ar.c (header_from_map): Print correct message when truncating.
  655.  
  656.     * ar.c (find_mapelt_noerror, header_from_map): Truncate to 15 chars,
  657.     not 16.
  658.  
  659.     * ranlib.c (main): Don't do the first ar run an infinite number of
  660.     times.  One will suffice.
  661.  
  662.     * ranlib.c (main): Under -v, echo the ar command before running it.
  663.  
  664.     * ar.c (ignore_symdef): New variable.  If nonzero, only do symdef
  665.     processing if the `s' option is given.
  666.     (main): If one of the members given on the command line is __.SYMDEF,
  667.     set ignore_symdef.
  668.     (scan): If ignore_symdef is nonzero, don't set symdef_exists.
  669.  
  670.     * ar.c (find_mapelt_noerror): A mapelt matches NAME if the names are
  671.     the same for 14 characters and either both end in ".o", or they are the
  672.     same for as many more characters as they both have (i.e., the longer
  673.     name is truncated to the length of the shorter name for the
  674.     comparison).
  675.  
  676.     * ar.c (update_symdefs): When correcting a bad string table size,
  677.     correct the size of the __.SYMDEF member as well.
  678.  
  679.     * ar.c (update_symdefs): Keep track of the space in the string table
  680.     accounted for by deleted members.  If the old archive's string table
  681.     size was too big, correct it; if it was too small, die.
  682.  
  683. Tue Aug 15 00:54:37 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  684.  
  685.     * ranlib.c (main): Use getopt, and accept new `-v' option, which means
  686.     to pass `v' to ar.  Use vfork instead of fork.  Look at the status of
  687.     the children, and exit if it's nonzero.  Also added error checking on
  688.     several calls.
  689.  
  690.     * ar.c (write_archive): Fully initialize the new mapelt for __.SYMDEF.
  691.  
  692. Sun Aug    13 00:01:27 1989  Joy Kendall      (jak at hobbes.ai.mit.edu)
  693.  
  694.     * strip.c, nm.c, objdump.c:  Installed versions with long
  695.     named options available, i.e., getopt substituted with 
  696.     getopt_long.
  697.  
  698.     * Makefile: changed GNU_GETOPT to GNU_GETOPT_LONG (need to
  699.     make sure I did this right)
  700.  
  701. Wed Aug  9 00:24:34 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  702.  
  703.     * ar.c (write_archive): When rewriting the symdef member, seek to its
  704.     header offset, not its data offset.
  705.  
  706.     * ar.c (header_from_map): New function to convert a `struct mapelt' to
  707.     an ar header.
  708.  
  709.     * ar.c: Miscellaneous cosmetic clean-ups.
  710.  
  711.     * ar.c (copy_out_member): If truncating the member name, and the
  712.     desired name (which is too long) ends in ".o", make the written member
  713.     name end in ".o" as well.
  714.  
  715. Tue Aug  8 16:26:49 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  716.  
  717.     * ld.c (classify_arg): Added 'V' to the list of possible
  718.     argument having thingys.
  719.  
  720.     * ld.c (do_relocation_warnings, do_file_warnings): Changed
  721.     messages slightly and removed hack to allow N_WARNING name to
  722.     be a printf string taking stuff as arguments.
  723.  
  724. Mon Aug  7 16:27:04 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  725.  
  726.     * ld.c: Created set_element_prefixes (list of symbol name
  727.     prefixes to force symbols to be treated as set elements).
  728.     (main): Initialized to 0.
  729.     (decode_option): -V name recognized as defining a prefix.
  730.     (set_element_prefixed_p): New function.
  731.     (enter_file_symbols): Check every symbol to see if it has a
  732.     prefix; if so, change the type.
  733.     (subfile_wanted_p): A subfile isn't wanted if the symbol
  734.     definition indicated is a set element by prefix.
  735.  
  736.     * ld.c [N_WARNING]: Changed commenting.
  737.  
  738.     * ld.c (do_file_warnings): On the second pass for actual
  739.     warning symbols, warn only if it isn't a definition and it
  740.     isn't the reference used by the warning symbol itself.
  741.  
  742. Fri Aug  4 13:04:57 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  743.  
  744.     * ld.c: Remove the warning field from struct file entry.
  745.     (enter_file_symbols): Deal with N_WARNING symbols on a
  746.     per symbol basis instead of a per file basis.
  747.     (mark_flagged_symbols): Deleted.
  748.     (do_warnings): Don't call mark_flagged_symbols anymore.
  749.  
  750.     * ld.c: Improved commenting on new GNU symbols.
  751.  
  752.     * ld.c (subfile_wanted_p): Don't load in files for a set
  753.     element symbol definition.
  754.  
  755. Thu Aug  3 12:54:30 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  756.  
  757.     * ld.c (write_output): Checked return code on last chmod and
  758.     output error if there is one.
  759.  
  760. Wed Aug  2 13:26:16 1989  Randy Smith  (randy at hobbes.ai.mit.edu)
  761.  
  762.     * ld.c (enter_global_ref): Separate out cases of undefined
  763.     reference and defining it versus from stuff done whenever you
  764.     define a symbol.  Clean up assignment to sp->defined.
  765.  
  766. Tue Aug  1 23:12:07 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  767.  
  768.     * ld.c: Created count common_defined_global_count.
  769.     (main): Initialized to 0.
  770.     (symdef_library): Symbol is needed if it isn't defined OR it's
  771.     defined common.  Don't stop looking till we don't have any
  772.     more symbols defined as common.
  773.     (linear_library): Don't stop looking until we have no more
  774.     symbols defined as common.
  775.     (subfile_wanted_p): If a symbol is defined common, we want to
  776.     check for a real definition.  If it used to be undefined and
  777.     we've defined it by common, increment CDGC.
  778.     (enter_global_ref): If a symbol is defined common and it used
  779.     to be undefined, increment CDGC.  If it is defined for real
  780.     and it used to be defined common, decrement CDGC and zero
  781.     max_common_size (so we can tell that it isn't defined common
  782.     any more).  Rewrote logic to be cleaner.
  783.  
  784. Mon Jul 31 14:52:25 1989  Randy Smith  (randy at hobbes.ai.mit.edu)
  785.  
  786.     * ld.c (digest_symbols): Reverse the order of the set element
  787.     vector so that the elements will be in the order of the input
  788.     files to ld.
  789.  
  790. Mon Jul 31 00:19:05 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  791.  
  792.     * ld.c [sun && sparc]: Don't include alloca.h if !defined(__GNUC__).
  793.  
  794. Mon Jul 24 19:29:40 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  795.  
  796.     * ld.c (enter_global_ref): Produce a warning message and
  797.     rewrite not to be so dangerous if someone is clueless enough
  798.     to indirect a symbol to itself.
  799.  
  800. Fri Jul 14 04:04:19 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  801.  
  802.     * ar.c (write_archive): Don't zero out the count of old symdefs if we
  803.     just read some.
  804.     (update_symdefs): Don't copy symdefs onto themselves when compacting.
  805.  
  806. Wed Jul 12 16:16:36 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  807.  
  808.     * ar.c (write_archive): Use read_old_symdefs if the member is there.
  809.     (make_new_symdefs): Return if passed a deleted member.
  810.  
  811.     * ar.c (write_archive): Zero out the info of the new __.SYMDEF member
  812.     properly.
  813.  
  814. Mon Jul 10 22:16:08 1989  Randy Smith  (roland at hobbes.ai.mit.edu)
  815.  
  816.     * ld.c (enter_global_ref): Put the type of the nlist entry with the
  817.     strongest type into the "defined" field of the symbol.  Used this to
  818.     determine the first definition of a set element.
  819.  
  820. Wed Jul  5 17:29:27 1989  Randy Smith  (randy at apple-gunkies.ai.mit.edu)
  821.  
  822.     * ld.c (do_file_warnings): Find undefined references on second
  823.     passes. 
  824.  
  825. Fri Jun 30 03:32:50 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  826.  
  827.     * ar.c [__GNUC__]: Use __builtin_alloca.
  828.     [sparc]: Include <alloca.h>.
  829.  
  830.     * ar.c (copy_out_member): After writing the header, set the entry's
  831.     `data_offset' field to the current file position.
  832.     (write_archive): After copying out members, check for any whose data
  833.     offsets weren't known when the symdef member was written, fix up the
  834.     offsets, and rewrite the symdef member.
  835.  
  836. Thu Jun 29 21:29:35 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  837.  
  838.     * ar.c (main): Call exit (0), instead of running off the end.
  839.  
  840. Tue Jun 27 02:11:22 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  841.  
  842.     * ar.c (make_new_symdefs): Rewritten to correctly convert the namelist
  843.     to symdefs.
  844.  
  845.     * ar.c (replace_members): Write the archive if symdef_flag is true and
  846.     there is no symdef member.
  847.  
  848.     * Makefile: Added $(archpfx) where appropriate.
  849.  
  850.     * ld.c (symdef_library): When decode_library_subfile returns nil
  851.     (meaning it hit the end of the library archive), barf.
  852.  
  853. Mon Jun 26 17:41:38 1989  Randy Smith  (randy at hobbes.ai.mit.edu)
  854.  
  855.     * ld.c (do_warnings): Take out the blank line printed at the
  856.     end of the warning routine.
  857.  
  858.     * ld.c (do_file_warnings): When looking for multiple
  859.     definitions, don't print out references (things that are just
  860.     N_EXT).  
  861.  
  862. Sun Jun 25 15:17:42 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  863.  
  864.     * ar.c (requestedp): Removed unused function.
  865.     (find_mapelt): Use find_mapelt_noerror.
  866.     (find_mapelt_noerror): Compare only the first 16 chars of names.
  867.     (error): Accept more args.
  868.     (copy_out_member): Write a message if the member name is truncated.
  869.  
  870.     * GNUmakefile: Just include Makefile, rather than doing the silly
  871.     recursion bit.
  872.  
  873.     * ar.c (write_archive): Split unlocking and closing into new function
  874.     close_archive.
  875.     (replace_members): If nothing changed, don't write the archive!
  876.  
  877.     * ar.c: Only write old Unix style informational messages
  878.     (x - foo, a - bar, etc.).  1003.2 requires it (sigh).
  879.  
  880. Wed Jun 21 21:45:57 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  881.  
  882.     * ar.c (insert_in_map): Only write one message under -v.
  883.     (print_descr): Use puts instead of printf where applicable.
  884.  
  885.     * ar.c (copy_out_member): Don't say "copying ... to new archive" under
  886.     -v.  This amounts to listing the entire archive with each insertion.
  887.  
  888.     * Makefile (ranlib.o): Use $(bindir)/ar rather than `pwd`/ar.
  889.  
  890. Tue Jun 20 18:46:42 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  891.  
  892.     * ar.c (main): The `u' flag implies the `r' operation.
  893.  
  894. Mon Jun 12 19:12:37 1989  Jay Fenlason  (hack at apple-gunkies.ai.mit.edu)
  895.  
  896.     * nm.c  Fixed #ifndef N_WARNING to actually compile correctly.
  897.  
  898.     * ld.c (N_TXTADDR, N_DATADDR): Changed #ifdef vax to
  899.     #if defined(vax) || defined(sony_news)
  900.     so that it'll compile on the Sony's.
  901.  
  902. Tue Jun  6 15:27:10 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  903.  
  904.     * ld.c (print_files_defining_symbol): Eliminated.
  905.     (main): Zero the first cmdline references after it is allocated.
  906.     (add_cmdline_ref): Make sure that we don't overwrite the end of the
  907.     array. 
  908.  
  909. Sun May 28 15:15:42 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  910.  
  911.     * nm.c (,print_one_symbol): Added code to handle N_WARNING.
  912.  
  913. Thu May 11 20:26:23 1989  Mike Haertel  (mike at apple-gunkies.ai.mit.edu)
  914.  
  915.     * ld.c (read_file_symbols): Use a struct exec instead of an int
  916.     for magic number checking.
  917.     * nm.c (do_one_file): Similar change.
  918.     * size.c (do_one_file): Similar change.
  919.     * strip.c (file_open): Similar change.    
  920.  
  921. Thu May 11 16:33:51 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  922.  
  923.     * ar.c (update_symdefs): Detect null pointer in info.name.
  924.  
  925. Thu May  4 01:53:32 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  926.  
  927.     * Makefile: Provide $(LIBS) when linking strip.
  928.  
  929. Mon May  1 16:40:27 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  930.  
  931.     * ld.c (main): Change return from main to be exit from main
  932.     (supported on more systems).
  933.  
  934. Mon Apr 24 14:47:53 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  935.  
  936.     * ld.c (decode_option, classify_arg): Accept -Bstatic as no-op.
  937.  
  938. Mon Apr 24 13:08:48 1989  Jay Fenlason  (hack at apple-gunkies.ai.mit.edu)
  939.  
  940.     * gprof.c:  Removed #ifdef __STDC__ stuff from all the
  941.     function headers, etc.
  942.  
  943. Sun Apr 23 00:16:09 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  944.  
  945.     * ld.c: Define INITIALIZE_HEADER for ALTOS.
  946.  
  947.     * robotussin.c (reloc_segment): Handle R_RELLONG like R_DIR32.
  948.     (INPUT_MAGIC): Set it for 386 or 68k according to predef symbols.
  949.  
  950.     * ranlib.c: Handle USG.  Define bzero, gettimeofday.
  951.     New macro `seconds' defined for USG or BSD.
  952.     Include sys/types.h and fcntl.h.
  953.  
  954. Thu Apr 20 14:47:37 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  955.  
  956.     * robotussin.c: discard symbols in section -1.
  957.  
  958.     * libconvert: change *.o to * in for statement.
  959.  
  960. Mon Apr 10 16:54:43 1989  Pace Willisson   (pace at apple-gunkies.ai.mit.edu)
  961.  
  962.     * strip.c (rewrite_file_symbols): Make strip work for
  963.     COFF_ENCAPSULATE (it used to write the new exec header at
  964.     file offset 0, instead of using HEADER_SEEK_FD)
  965.  
  966. Fri Mar 10 15:50:45 1989  Randall Smith  (randy at sugar-bombs.ai.mit.edu)
  967.  
  968.     * ranlib.c (touch): Created to simply touch an archive (update the
  969.     date on the symdef member).  Done here since adding an option to
  970.     ar.c would be a hassle and using the routines in ar.c would
  971.     require doing almost all of the work of an "ar rs x.a" anyway.
  972.     Same result in both cases; differing amounts of time.
  973.  
  974. Mon Mar  6 15:27:56 1989  Jay Fenlason  (hack at apple-gunkies.ai.mit.edu)
  975.  
  976.     * gprof.c (ck_fclose) only fflush() streams opened for writing.
  977.  
  978. Sun Mar  5 17:13:37 1989  Randall Smith  (randy at gluteus.ai.mit.edu)
  979.  
  980.     * ar.c (write_archive): Modified test to write symdef header;
  981.     wasn't being done if the symdef map entry didn't need to be newly
  982.     created. 
  983.  
  984. Fri Mar  3 10:56:55 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  985.  
  986.     * *.*, Makefile: Changed to use new wording as directed by the new
  987.     GNU General Public License.
  988.     * COPYING: Created as a link to /gp/rms/COPYING.
  989.  
  990. Wed Feb 22 04:42:54 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  991.  
  992.     * Makefile: Use GNU getopt by preference.
  993.  
  994.     * gprof.c [USG]: Define bcopy as macro.
  995.  
  996. Tue Feb 21 04:46:44 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  997.  
  998.     * ld.c (INITIALIZE_HEADER) [HPUX]: Use N_SET_MACHTYPE.
  999.  
  1000. Sat Feb 18 12:47:36 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1001.  
  1002.     * Makefile: Added note for using GNU getopt for app routines.
  1003.     Linked (symlink) it into this directory.
  1004.  
  1005.     * ld.c: Added #ifndef sony_news around inclusion of fcntl.h.  This
  1006.     file duplicates code in sys/file.h on the sony.
  1007.  
  1008.     * nm.c: Added include of alloca.h on a sun4 and use of
  1009.     __builtin_alloca if compiling with GCC.
  1010.  
  1011. Sat Feb 18 09:43:51 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1012.  
  1013.     * ar.c (write_archive): Don't die if info.name is 0 (member deleted).
  1014.     (scan): Reverse fread args, so value is right.
  1015.  
  1016. Fri Feb 17 05:19:50 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1017.  
  1018.     * ar.c (extract_members, scan): Open just a FILE *, and pass that.
  1019.     (extract_member, print_contents): Expect a FILE *; no need to fdopen.
  1020.  
  1021. Thu Feb 16 07:36:03 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1022.  
  1023.     * gprof.c: Reformatted.
  1024.  
  1025. Fri Feb  3 14:28:24 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1026.  
  1027.     * ld.c (do_warnings): Changed calls to each_full_file to each_file
  1028.     (which is what we want, since we are concerned with symbol
  1029.     definitions).
  1030.  
  1031.     * ld.c: Added a parameter MAX_ALIGNMENT, defined in #ifdef sparc
  1032.     and by default, to set the maximum necessary alignment for data
  1033.     objects on this machine.  This is necessary for allocation in the
  1034.     bss area.
  1035.     (digest_symbols): Made sure that everything allocated had the
  1036.     minimum of it's alignment (lowest bit set in the size) or the
  1037.     MAX_ALIGNMENT. 
  1038.  
  1039. Thu Jan 26 13:31:52 1989  Pace Willison  (pace at apple-gunkies.ai.mit.edu)
  1040.  
  1041.     * Makefile: Delete -Dnounderscore, add gprof to USG PROG list
  1042.  
  1043.     * ar.c (rename for USG): ignore error from first unlink
  1044.  
  1045.     * gprof.c: COFF_ENCAPSULATE and USG changes.
  1046.  
  1047.     * ld.c strip.c: Deal with internal labels starting with '.' on
  1048.     nounderscore machines and 'L' on normal ones (LPREFIX).
  1049.  
  1050.     * ld.c(next_debug_entry): Mask n_type field in switch statement
  1051.     since it is a char, and some of its values (N_SOL) are > 128, which
  1052.     get sign extended on some machines.
  1053.  
  1054.     * objdump.c: Deal with symbols that have no name; mask fields 
  1055.     of nlist before printing.
  1056.  
  1057. Mon Jan 23 14:08:43 1989  Randall Smith  (randy at plantaris.ai.mit.edu)
  1058.  
  1059.     * ld.c (coptxtrel, copdatrel): Made sure that, when relocation is
  1060.     being copied, that N_INDR symbols were properly followed.  Also
  1061.     made sure that the symbol indicies were correct even in the
  1062.     presence of indirection information.
  1063.  
  1064.     * ld.c (write_rel): When specifying symbol numbers, make sure to
  1065.     leave room for the extra undefined ref that will be written for
  1066.     the sake of N_INDR entries.
  1067.  
  1068.     * ld.c (write_syms): Fixed typo; a duplicate of the N_INDR entry
  1069.     was being written instead of the undefined ref required.
  1070.  
  1071. Tue Jan 17 16:23:56 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1072.  
  1073.     * strip.c (rename): Arranged to ignore return code from "unlink";
  1074.     file may not be there.
  1075.  
  1076. Thu Jan 12 15:24:23 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1077.  
  1078.     * Makefile: Modified "dist" target so as to get hp-*
  1079.     subdirectories. 
  1080.  
  1081.     * strip.c (rename): Added function to mimic BSD system call for
  1082.     system V.
  1083.  
  1084. Tue Jan 10 19:44:33 1989  Pace Willison  (pace at prep.ai.mit.edu)
  1085.  
  1086.     * Makefile: put -Dnounderscore back for COFF_ENCAPSULATE.
  1087.  
  1088. Tue Jan 10 17:58:50 1989  Randall Smith  (randy at cream-of-wheat.ai.mit.edu)
  1089.  
  1090.     * ld.c (linear_library, symdef_library, list_file_locals,
  1091.     write_file_syms): Took care to make sure that when the buffer
  1092.     pointed to by entry->strings became invalid, entry->strings was
  1093.     set to zero (either on a free or a function return if space had
  1094.     been allocated through alloca).
  1095.  
  1096.     * ld.c (getpagesize): Deleted define in hpux dependent section;
  1097.     taken care of when compiling on hpux because of define of USG in
  1098.     Makefile. 
  1099.  
  1100. Mon Jan  9 22:49:42 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1101.  
  1102.     * strip.c (strip_file): Effectively defer certain signals
  1103.     while rewriting the file.
  1104.  
  1105. Mon Jan  9 09:45:41 1989  Pace Willisson  (pace at prep.ai.mit.edu)
  1106.  
  1107.     * These changes improve support for COFF_ENCAPSULATE, and
  1108.     for the future development of the GNU exec header.  The
  1109.     main change is to rename the exec header field a_magic
  1110.     so that it can contain additional information.  Now, the
  1111.     magic number must be accessed with N_MAGIC(exec), and set
  1112.     with N_SET_MAGIC(exec,val).  Programs that only need to use
  1113.     N_BADMAG will not have to change.  Also COFF_ENCAPSULATE will
  1114.     no longer use "nounderscore", so that it will be more like
  1115.     normal bsd systems.  This means gcc must be updated before using
  1116.     these new tools.  (It is safe to put -Dnounderscore back in
  1117.     if you want to use an old gcc for a while.)
  1118.  
  1119.     * README-ENCAP: new documentation for how to set up to use
  1120.     COFF_ENCAPSULATE.
  1121.  
  1122.     * Makefile:  Add target for gnulib.
  1123.     Don't define 'nounderscore' (must tell gcc about that too.)
  1124.  
  1125.     * ar.c: Don't automatically define COFF_ENCAPSULATE.
  1126.  
  1127.     * nm.c: No need to initialize the header before reading it.
  1128.  
  1129.     * size.c: Include, sys/types.h, and sys/fcntl.h if USG
  1130.     * strip.c: Likewise--types.h before file.h.
  1131.  
  1132.     * ld.c, objdump.c, robotussin.c:
  1133.     Changed to use new exec macros for a_magic.
  1134.  
  1135.     * libconvert: now takes arguments
  1136.  
  1137.     * robotussin.c: don't automatically define nounderscore - leave
  1138.     that to the makefile, if desired
  1139.  
  1140. Fri Jan  6 13:06:37 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1141.  
  1142.     * ld.c (digest_symbols, write_text, write_data): Changed N_SETV
  1143.     from being in the text area to being in the data area.
  1144.     * nm.c, a.out.gnu.h: Changed comments to conform with above.
  1145.  
  1146.     * ld.c (do_file_warnings): Added loop to go through each external
  1147.     nlist entry and check for multiple definitions, as well as
  1148.     catching any references which weren't caught by the relocation
  1149.     pass. 
  1150.  
  1151.     * ld.c (address_to_line): Changed so that it will work (albeit
  1152.     slowly) with an address less than the current address.
  1153.     (do_file_warnings, do_relocation_warnings): Broke out scan through
  1154.     relocation entries into a separate function.  Added creation of a
  1155.     bitvector with each bit refereing to an nlist entry so that
  1156.     do_relocation_warnings could mark which symbol entries it had
  1157.     output for undefined references.
  1158.  
  1159. Thu Jan  5 20:36:44 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1160.  
  1161.     * ld.c: Cosmetic changes: Moved helper functions for
  1162.     do_file_warnings to before it and modified comments to
  1163.     next_debug_symbol and address_to_line.
  1164.  
  1165. Wed Jan  4 15:37:52 1989  Randall Smith  (randy at gluteus.ai.mit.edu)
  1166.  
  1167.     * ld.c: Added #define getpagesize() EXEC_PAGESIZE for hpux.
  1168.  
  1169.     * ld.c (do_warnings): Will now print out all undefined external
  1170.     symbols which were not referenced from the text or data sections
  1171.     separately.
  1172.     (do_file_warnings): Decreases undefined_global_sym_count for each
  1173.     symbol printed.
  1174.  
  1175. Tue Jan  3 23:43:41 1989  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1176.  
  1177.     * Makefile (nm): Link with $(LIBS).
  1178.  
  1179.     * ld.c (getpagesize): HPUX definition deleted; not needed.
  1180.  
  1181. Mon Jan  2 23:04:35 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1182.  
  1183.     * ld.c (digest_symbols): Modified the creation of set vectors
  1184.     to include a zero word after the end  of the vector.
  1185.     (write_text): Made the same modification of the set vector section
  1186.     size. 
  1187.  
  1188. Sun Jan  1 12:01:22 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1189.  
  1190.     * ld.c: Fixed typo in description of relocation values, and
  1191.     changed note on RELOC_ADD_EXTRA to force is to be an lvalue if
  1192.     it's defined.
  1193.     (coptxtrel): If a specific relocation entry has just changed from
  1194.     external to internal, and we aren't supposed to add in memory on
  1195.     the new relocation value, make sure that the value of the symbol
  1196.     get's added to the ADD_EXTRA in the relocation value.  Otherwise,
  1197.     all the work we do in a partial linking will be wasted (will be in
  1198.     memory, but will be ignored on the next pass of the linker).
  1199.  
  1200. Sat Dec 31 13:13:01 1988  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1201.  
  1202.     * ld.c: Removed "|| TARGET == SUN2" from line 210; I believe that
  1203.     TARGET and SUN2 were both showing up defined as 0 on the sparc,
  1204.     which resulted in a redefine of the INITIALIZE_HEADER macro, back
  1205.     to sun2 style.
  1206.  
  1207. Thu Dec 29 01:48:03 1988  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1208.  
  1209.     * ld.c, ar.c: Don't define COFF_ENCAPSULATE automatically.
  1210.     The recommended Makefile change defines it.
  1211.  
  1212.     * ld.c (alloca): If compiling with GCC, use __builtin_alloca.
  1213.  
  1214.     * robotussin.c: New reformatted version with all variables renamed.
  1215.  
  1216.     * ranlib.c: New file, just runs `ar rs' on each specified file.
  1217.     * Makefile: Special hack to tell ranlib where to find GNU ar.
  1218.     (LIBS): Recommend -lPW on USG; ld needs it for alloca (if not GCC).
  1219.  
  1220. Sat Dec 24 13:59:09 1988  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1221.  
  1222.     * ld.c (error): Start with name of program running.
  1223.     (main): Set `progname' to that name.
  1224.     (digest_symbols): Fix punctuation and spelling in calls to `error'.
  1225.  
  1226. Tue Dec 20 21:49:46 1988  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1227.  
  1228.     * robotussin.c (INPUT_MAGIC): New macro, has the magic number
  1229.     to expect in input files.
  1230.     (nounderscore): New macro; as in ld, define it to inhibit
  1231.     adding underscore to symbols.
  1232.  
  1233.     * Makefile: Don't compile objdump on BSD; N_DATADDR causes trouble.
  1234.  
  1235. Tue Dec 20 14:57:38 1988  Pace Willisson  (pace at prep.at.mit.edu)
  1236.  
  1237.     * objdump.c: New program like the system 5 'dump' program.
  1238.     Documentation will follow...
  1239.  
  1240.     * Makefile: Set up CFLAGS for USG systems.  Added target
  1241.     libc.a to do robotussin conversion.  Added objdump.
  1242.  
  1243.     * libconvert: Wrote shell script to do robotussin conversion.
  1244.  
  1245.     * ar.c, ld.c: Don't define COFF_ENCAPSULATE if it is already defined.
  1246.  
  1247.     * ld.c: If i386, set a_machtype to M_386.  Use a_flags instead
  1248.     of a_encap.  Don't compute coff header if it isn't going to
  1249.     get written out.
  1250.  
  1251.     * robotussin.c: Define COFF_ENCAPSULATE. Include a.out.encap.h
  1252.     instead of a.out.h.  Check magic number of input
  1253.     file.  Skip over optional header, if present.  Don't ignore
  1254.     symbols with aux entries (they could be function definitions),
  1255.     instead, ignore symbols beginning with '.' (.text, etc).
  1256.     Don't prepend underscore to externals, since gcc doesn't do
  1257.     it now.  Don't run past the end of symbols that are exactly
  1258.     eight characters long.  Always write the string table size,
  1259.     even if it is empty.  Change relocation types handled from
  1260.     R_PCRBYTE, etc, to R_DIR32 and R_PCRLONG (these are the
  1261.     only two emitted by the system 5 assembler.)
  1262.  
  1263.     * size.c: Include <sys/types.h> so including sys/file.h will
  1264.     not get an error on USG systems.  Include fcntl.h on usg systems.
  1265.  
  1266.     * strip.c: Move inclusion of file.h to after types.h.  Include
  1267.     fcntl.h.  Add defintion of rename.
  1268.  
  1269. Fri Dec 16 13:55:11 1988  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1270.  
  1271.     * size.c: Delete all ROBOTUSSIN conditionals and contents.
  1272.     Change SYSV conditionals to USG.
  1273.     COFF_ENCAPSULATE conditionals for headers.
  1274.     (do_one_file, read_header): Skip encapsulation headers if any.
  1275.  
  1276.     * strip.c: Delete all ROBOTUSSIN conditionals and contents.
  1277.     Change SYSV conditionals to USG.
  1278.     COFF_ENCAPSULATE conditionals for headers.
  1279.     (file_open, read_header): Skip encapsulation headers if any.
  1280.  
  1281.     * strip.c: Change most fatal errors to nonfatal.
  1282.     (file_open, read_header, read_{file,entry}_symbols):
  1283.     Now return 0 for success, -1 for failure.
  1284.     Failure means do no more for the current file.
  1285.     (modify_relocation): Now just warn if strip a symbol needed
  1286.     for relocation, and warn only once per file.
  1287.     (error_with_file): New function, replaces most fatal_with_file.
  1288.     Print filename first, as in most programs.
  1289.     (fatal_with_file): Deleted.
  1290.     (rewrite_file_symbols): Use perror_file when system call fails.
  1291.  
  1292. Tue Dec 13 17:16:39 1988  Jay Fenlason  (hack at apple-gunkies.ai.mit.edu)
  1293.  
  1294.     * ar.c:  Changed pad character after odd-length archive member
  1295.     from \0 to \n so archives can be cmp'd with the output from /bin/ar
  1296.     Added fix for when ranlib is using ar to insert an __.SYMDEF member
  1297.  
  1298. Tue Dec 13 09:09:27 1988  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1299.  
  1300.     * ar.c: conditional #includes for USG.
  1301.     * COFF_ENCAPSULATE conditionals for headers.
  1302.     (extract_member): Don't do fchmod if USG.
  1303.     Alternate USG code to set modtimes of extracted members.
  1304.     (write_archive): Don't do fsync if USG.
  1305.     (make_new_symdefs): Skip encapsulation headers if any.
  1306.     [USG] (bcopy, bzero, bcmp): New fns.
  1307.  
  1308.     * nm.c: Delete all ROBOTUSSIN conditionals and contents.
  1309.     Include types.h.
  1310.     Change SYSV conditionals to USG.
  1311.     * COFF_ENCAPSULATE conditionals for headers.
  1312.     (do_one_file): Skip encapsulation headers if any.
  1313.     (read_header): Likewise.
  1314.  
  1315.     * ld.c: Delete all ROBOTUSSIN conditionals and contents.
  1316.     Change SYSV conditionals to USG.
  1317.     Change HEADER_TYPE back to `struct exec'.
  1318.     (L_SET): Define it if headers don't.
  1319.     * COFF_ENCAPSULATE conditionals for headers.
  1320.     (main): Update text_size differently if encapsulating.
  1321.     (write_header): Write the encapsulation headers if nec.
  1322.     Don't end with padding if encapsulation being done.
  1323.     [USG] (bzero, bcopy, getpagesize): New fns.
  1324.  
  1325. Tue Dec  6 13:26:56 1988  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1326.  
  1327.     * ld.c (do_file_warnings): Ignored text relocation entries that
  1328.     went through local symbols; any problems with lack of definitions
  1329.     etc. with them would have been caught by the compiler.
  1330.  
  1331. Mon Dec  5 16:13:22 1988  Jay Fenlason  (hack at sugar-bombs.ai.mit.edu)
  1332.  
  1333.     * ar.c (make_new_symdefs): On error, close the input files.
  1334.  
  1335. Thu Nov 10 18:15:07 1988  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  1336.  
  1337.     * ld.c: Put declaration of alloca inside an #ifdef so that it
  1338.     wouldn't mess up on the sparc.
  1339.  
  1340.     * ld.c: Added #define CORE_ADDR for include of symseg.h from gdb
  1341.     and took out TARGET == SUN2 for sun2 INITIALIZE_HEADER.
  1342.  
  1343. Wed Nov  2 18:43:09 1988  Randall Smith  (randy at gluteus.ai.mit.edu)
  1344.  
  1345.     * ld.c: Merged in isi68k port.  This included a kludge for symbols
  1346.     starting with _$ (#ifdef DOLLAR_KLUDGE) and addition of the
  1347.     STANDARD_SEARCH_DIRS macro to override the default if it's
  1348.     defined. 
  1349.  
  1350.     * ld.c: Added code for the N_WARNING symbol type.  If a reference
  1351.     is found to a symbol in an input .o file which contains an
  1352.     N_WARNING symbol, a warning message (the name of the N_WARNING
  1353.     symbol) is printed.  This name is treated as a printf format
  1354.     string; the name of the symbol referenced (which caused the
  1355.     warning) is supplied as a single argument to the print which
  1356.     interpets this string.
  1357.  
  1358. Tue Nov  1 16:57:00 1988  Randall Smith  (randy at gluteus.ai.mit.edu)
  1359.  
  1360.     * ld.c: Added code for Sun 2.
  1361.  
  1362.     * ld.c: Modified access to the relocation information to be *much*
  1363.     more general; added in sparc support.  This change is a minor
  1364.     performance hit; the perform_relocation routine uses about 0.1
  1365.     seconds more time on linking gdb than did the original ld.
  1366.     (perform_relocation is about 5% of the total time the loader
  1367.     spends).  The price of generality.
  1368.  
  1369. Thu Aug  4 13:20:50 1988  Randy Smith  (randy at rice-chex.ai.mit.edu)
  1370.  
  1371.     * Modified ld.c to print only the first 10 unresolved references
  1372.     for each symbol, followed by a message indicating that there are
  1373.     more unresolved references that have not been printed (if indeed
  1374.     there are).  Made default behaivior upon errors *not* writing any
  1375.     output file at all.  Also added the -noinhibit-exec flag to force
  1376.     writing of an executable when that was desirable.
  1377.  
  1378. Tue Aug  2 12:04:01 1988  Randy Smith  (randy at rice-chex.ai.mit.edu)
  1379.  
  1380.     * Modified ld.c to give line numbers wherever possible on
  1381.     unreferenced symbols.  Added a new symbol (N_DSLNE) to allow for
  1382.     the same mapping of data location to line number as is done for
  1383.     text segments by N_SLINE.  Added code to sort the relocation
  1384.     entries when it is necessary to output these line numbers.  The
  1385.     assumption was made that both N_SLINE and N_DSLNE symbols would
  1386.     always be in order by address.
  1387.  
  1388. Wed Jul 27 15:13:08 1988  Randy Smith  (randy at rice-chex.ai.mit.edu)
  1389.  
  1390.     * Modified ld.c to include a facility for equivalencing two
  1391.     symbols (translating one to another).  Modified lib/a.out.h to
  1392.     include a definition of this new symbol.  Modified nm.c to
  1393.     recognize this symbol and all of the set element and vector
  1394.     symbols I had added before.
  1395.  
  1396. Thu Jul 21 17:06:10 1988  Randy Smith  (randy at rice-chex.ai.mit.edu)
  1397.  
  1398.     * Modified ld.c to printout source file and line numbers for
  1399.     unresolved references whenever possible (ie. whenever the input
  1400.     file has debugger symbols and the reference is from the text area).
  1401.  
  1402. Wed Jul 13 17:21:33 1988  Randy Smith  (randy at frosted-flakes.ai.mit.edu)
  1403.  
  1404.     * Modified ld.c and a.out.h to handle new types of symbols; the
  1405.     loader can now create "sets" of symbols from entries in its input
  1406.     files.  See a.out.h for more info.  Also fixed a bug in ld in
  1407.     which references to common areas that we not defined in one pass
  1408.     of the loader caused errors on the next.
  1409.  
  1410. Sat Jul  2 00:05:44 1988  Richard Stallman  (rms at sugar-bombs.ai.mit.edu)
  1411.  
  1412.     * ld.c (symdef_library): Error check was off by one.
  1413.  
  1414. Mon May  9 12:53:08 1988  Chris Hanson  (cph at kleph)
  1415.  
  1416.     * ar.c (replace_members): After updating map, write out
  1417.     `change_map->next' rather than `map', since the latter may be
  1418.     null.
  1419.  
  1420. Local Variables:
  1421. mode: indented-text
  1422. left-margin: 8
  1423. version-control: never
  1424. End:
  1425.